package com.hkemm.students;

public abstract class Student {
    private int stu_number;     //学号
    private String name;        //姓名
    private String sex;         //性别
    private int age;            //年龄



    public Student(int stu_number, String name, String sex, int age) {
        this.stu_number = stu_number;
        this.name = name;
        this.sex = sex;
        this.age = age;
    }


    public int getStu_number() {
        return stu_number;
    }

    public void setStu_number(int stu_number) {
        this.stu_number = stu_number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    //输出学生成绩信息
    public abstract void showGrade();
}
